.class public Lcom/waiqin365/lightapp/sales/SalesDetailActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/waiqin365/compons/view/d;
.implements Lcom/waiqin365/lightapp/sales/g;


# instance fields
.field private A:Lcom/waiqin365/lightapp/sales/c/a;

.field private B:Lcom/waiqin365/lightapp/sales/a;

.field private C:Z

.field private D:Ljava/lang/String;

.field private E:Ljava/lang/String;

.field private F:Ljava/lang/String;

.field private G:Landroid/os/Handler;

.field private H:Lcom/waiqin365/lightapp/sales/c/b;

.field private I:Lcom/waiqin365/compons/view/c;

.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/widget/TextView;

.field private f:Landroid/widget/TextView;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/LinearLayout;

.field private i:Landroid/widget/LinearLayout;

.field private j:Landroid/widget/LinearLayout;

.field private k:Landroid/widget/LinearLayout;

.field private l:Landroid/widget/TextView;

.field private m:Landroid/widget/TextView;

.field private n:Landroid/widget/TextView;

.field private o:Landroid/widget/TextView;

.field private p:Landroid/widget/TextView;

.field private q:Lcom/waiqin365/lightapp/view/ImagePreview;

.field private r:Landroid/widget/TextView;

.field private s:Landroid/widget/TextView;

.field private t:Landroid/view/View;

.field private u:Landroid/widget/ImageView;

.field private v:Landroid/widget/ListView;

.field private w:Lcom/waiqin365/lightapp/sales/a/a;

.field private x:Landroid/widget/LinearLayout;

.field private y:Landroid/widget/Button;

.field private z:Landroid/widget/Button;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    new-instance v0, Lcom/waiqin365/lightapp/sales/c/b;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/sales/c/b;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->H:Lcom/waiqin365/lightapp/sales/c/b;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/sales/SalesDetailActivity;)Lcom/waiqin365/lightapp/sales/c/a;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/sales/SalesDetailActivity;Lcom/waiqin365/lightapp/sales/c/a;)Lcom/waiqin365/lightapp/sales/c/a;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    return-object p1
.end method

.method private a()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/sales/m;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/sales/m;-><init>(Lcom/waiqin365/lightapp/sales/SalesDetailActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->G:Landroid/os/Handler;

    return-void
.end method

.method private a(Lcom/waiqin365/lightapp/sales/c/b;)V
    .locals 3

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/lightapp/sales/b/a/c;

    invoke-direct {v1, v0, p1}, Lcom/waiqin365/lightapp/sales/b/a/c;-><init>(Ljava/lang/String;Lcom/waiqin365/lightapp/sales/c/b;)V

    new-instance v0, Lcom/waiqin365/lightapp/sales/b/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->G:Landroid/os/Handler;

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/lightapp/sales/b/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/sales/b/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/sales/b/b;->start()V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/sales/SalesDetailActivity;)Lcom/waiqin365/compons/view/c;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->I:Lcom/waiqin365/compons/view/c;

    return-object v0
.end method

.method private b()V
    .locals 3

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v0, "isFromPush"

    const/4 v2, 0x0

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->C:Z

    const-string/jumbo v0, "salesNo"

    invoke-virtual {v1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->D:Ljava/lang/String;

    const-string/jumbo v0, "salesId"

    invoke-virtual {v1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->E:Ljava/lang/String;

    const-string/jumbo v0, "sales"

    invoke-virtual {v1, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/sales/c/a;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    const-string/jumbo v0, "menuId"

    invoke-virtual {v1, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->F:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/sales/c/a;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/sales/c/a;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    :cond_0
    new-instance v0, Lcom/waiqin365/lightapp/sales/a;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/sales/a;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->B:Lcom/waiqin365/lightapp/sales/a;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->B:Lcom/waiqin365/lightapp/sales/a;

    invoke-virtual {v0, p0}, Lcom/waiqin365/lightapp/sales/a;->a(Lcom/waiqin365/lightapp/sales/g;)V

    return-void
.end method

.method private b(Lcom/waiqin365/lightapp/sales/c/a;)V
    .locals 3

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/lightapp/sales/b/a/b;

    iget-object v2, p1, Lcom/waiqin365/lightapp/sales/c/a;->a:Ljava/lang/String;

    invoke-direct {v1, v0, v2}, Lcom/waiqin365/lightapp/sales/b/a/b;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightapp/sales/b/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->G:Landroid/os/Handler;

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/lightapp/sales/b/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/sales/b/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/sales/b/b;->start()V

    return-void
.end method

.method private c()V
    .locals 13

    const/4 v12, 0x0

    const/16 v6, 0x10

    const/4 v11, 0x1

    const/16 v10, 0x8

    const/4 v1, 0x0

    const v0, 0x7f0c0ac1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->a:Landroid/widget/ImageView;

    const v0, 0x7f0c0ac3

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->b:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->b:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0806ff

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0a9d

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->v:Landroid/widget/ListView;

    new-instance v0, Lcom/waiqin365/lightapp/sales/a/a;

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->u:Ljava/util/List;

    invoke-direct {v0, p0, v2}, Lcom/waiqin365/lightapp/sales/a/a;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->w:Lcom/waiqin365/lightapp/sales/a/a;

    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v2, 0x7f0301fb

    invoke-virtual {v0, v2, v12}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    const v0, 0x7f0c0580

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->u:Landroid/widget/ImageView;

    const v0, 0x7f0c057f

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->c:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->c:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->i:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0581

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->d:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->d:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->c:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0a8e

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->e:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->e:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "\uffe5"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v5, v5, Lcom/waiqin365/lightapp/sales/c/a;->j:Ljava/lang/Double;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v5, ""

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {}, Lcom/waiqin365/lightapp/product/e/b;->f()I

    move-result v5

    invoke-static {v3, v5, v11}, Lcom/waiqin365/lightapp/product/e/b;->b(Ljava/lang/String;IZ)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v0, "0"

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->n:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->u:Landroid/widget/ImageView;

    const v2, 0x7f02030a

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->u:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_0
    const-string/jumbo v0, "1"

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->n:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->u:Landroid/widget/ImageView;

    const v2, 0x7f02030d

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->u:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_1
    const-string/jumbo v0, "2"

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->n:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->u:Landroid/widget/ImageView;

    const v2, 0x7f02030b

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->u:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_2
    const v0, 0x7f0c0a96

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->f:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->f:Landroid/widget/TextView;

    const v2, 0x7f0807a9

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-array v3, v11, [Ljava/lang/Object;

    iget-object v5, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v5, v5, Lcom/waiqin365/lightapp/sales/c/a;->u:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v1

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0a8d

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->g:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->g:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->d:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0593

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->h:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0a8f

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->l:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/sales/c/a;->g:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_d

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v2

    if-lt v2, v6, :cond_d

    invoke-virtual {v0, v1, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    move-object v3, v0

    :goto_0
    if-eqz v3, :cond_4

    const-string/jumbo v0, ""

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->l:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v5, "  "

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v5, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v5, v5, Lcom/waiqin365/lightapp/sales/c/a;->f:Ljava/lang/String;

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_1
    const v0, 0x7f0c009d

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->i:Landroid/widget/LinearLayout;

    const v0, 0x7f0c009f

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->m:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/sales/c/a;->o:Ljava/lang/String;

    if-eqz v0, :cond_5

    const-string/jumbo v0, ""

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->o:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->m:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v5, v5, Lcom/waiqin365/lightapp/sales/c/a;->o:Ljava/lang/String;

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v5, "  "

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v5, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v5, v5, Lcom/waiqin365/lightapp/sales/c/a;->q:Ljava/lang/String;

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_2
    const v0, 0x7f0c0a90

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->j:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0a91

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->n:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/sales/c/a;->r:Ljava/lang/String;

    if-eqz v0, :cond_6

    const-string/jumbo v0, ""

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->r:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_6

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->n:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->r:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_3
    const v0, 0x7f0c0543

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->k:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0584

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->o:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/sales/c/a;->s:Ljava/lang/String;

    if-eqz v0, :cond_7

    const-string/jumbo v0, ""

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->s:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->o:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->s:Ljava/lang/String;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_4
    const v0, 0x7f0c0a93

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/ImagePreview;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->q:Lcom/waiqin365/lightapp/view/ImagePreview;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->q:Lcom/waiqin365/lightapp/view/ImagePreview;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/ImagePreview;->setEdit(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->q:Lcom/waiqin365/lightapp/view/ImagePreview;

    invoke-virtual {v0, v10}, Lcom/waiqin365/lightapp/view/ImagePreview;->setTitlevisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/sales/c/a;->m:Ljava/lang/String;

    if-eqz v0, :cond_8

    const-string/jumbo v0, ""

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->m:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_8

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->q:Lcom/waiqin365/lightapp/view/ImagePreview;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/ImagePreview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/sales/c/a;->m:Ljava/lang/String;

    const-string/jumbo v2, ","

    invoke-virtual {v0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v5

    array-length v0, v5

    if-lez v0, :cond_9

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->mContext:Landroid/content/Context;

    invoke-virtual {v0, v2}, Lcom/waiqin365/base/login/mainview/a;->m(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v2, "/"

    invoke-virtual {v0, v2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    move v0, v1

    :goto_5
    array-length v2, v5

    if-ge v0, v2, :cond_9

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v7, "/"

    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    aget-object v7, v5, v0

    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v8, "/"

    invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    aget-object v8, v5, v0

    invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v8, "."

    invoke-virtual {v2, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-eqz v8, :cond_3

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v9, "."

    invoke-virtual {v2, v9}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v9

    invoke-virtual {v2, v1, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string/jumbo v9, "_small"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string/jumbo v9, "."

    invoke-virtual {v2, v9}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v9

    invoke-virtual {v2, v9}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v8, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    :cond_3
    new-instance v8, Lcom/waiqin365/lightapp/b/b;

    invoke-direct {v8}, Lcom/waiqin365/lightapp/b/b;-><init>()V

    iput-object v7, v8, Lcom/waiqin365/lightapp/b/b;->b:Ljava/lang/String;

    iput-object v2, v8, Lcom/waiqin365/lightapp/b/b;->a:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->q:Lcom/waiqin365/lightapp/view/ImagePreview;

    invoke-virtual {v2, v8}, Lcom/waiqin365/lightapp/view/ImagePreview;->a(Lcom/waiqin365/lightapp/b/b;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_5

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->h:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v10}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_1

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->i:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v10}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_2

    :cond_6
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->j:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v10}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_3

    :cond_7
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v10}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_4

    :cond_8
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->q:Lcom/waiqin365/lightapp/view/ImagePreview;

    invoke-virtual {v0, v10}, Lcom/waiqin365/lightapp/view/ImagePreview;->setVisibility(I)V

    :cond_9
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->v:Landroid/widget/ListView;

    invoke-virtual {v0, v4}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->v:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->w:Lcom/waiqin365/lightapp/sales/a/a;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v2, 0x7f0301fa

    invoke-virtual {v0, v2, v12}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    const v0, 0x7f0c0a89

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->p:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->p:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v5, "\u00a5"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v6, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v6, v6, Lcom/waiqin365/lightapp/sales/c/a;->j:Ljava/lang/Double;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, ""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {}, Lcom/waiqin365/lightapp/product/e/b;->f()I

    move-result v6

    invoke-static {v5, v6, v11}, Lcom/waiqin365/lightapp/product/e/b;->b(Ljava/lang/String;IZ)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c057b

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->r:Landroid/widget/TextView;

    const v0, 0x7f0c057d

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->s:Landroid/widget/TextView;

    const v0, 0x7f0c057c

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->t:Landroid/view/View;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->r:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v5, v5, Lcom/waiqin365/lightapp/sales/c/a;->f:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string/jumbo v5, " "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, " ["

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const v4, 0x7f08078d

    invoke-virtual {p0, v4}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, "]"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v0, "0"

    iget-object v3, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v3, v3, Lcom/waiqin365/lightapp/sales/c/a;->n:Ljava/lang/String;

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_a

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->t:Landroid/view/View;

    invoke-virtual {v0, v10}, Landroid/view/View;->setVisibility(I)V

    :goto_6
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->v:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;)V

    const v0, 0x7f0c0a9e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->x:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0abc

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->y:Landroid/widget/Button;

    const v0, 0x7f0c0abb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->z:Landroid/widget/Button;

    const-string/jumbo v0, "0"

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/sales/c/a;->n:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_c

    invoke-static {p0}, Lcom/waiqin365/lightapp/sales/d/a;->a(Landroid/content/Context;)Lcom/waiqin365/lightapp/sales/d/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/sales/d/a;->b()Z

    move-result v0

    if-eqz v0, :cond_c

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->x:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_7
    return-void

    :cond_a
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->t:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    const-string/jumbo v0, "2"

    iget-object v3, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v3, v3, Lcom/waiqin365/lightapp/sales/c/a;->n:Ljava/lang/String;

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_b

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->s:Landroid/widget/TextView;

    const-string/jumbo v3, "#51bd89"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->s:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v4, v4, Lcom/waiqin365/lightapp/sales/c/a;->q:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, " "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v4, v4, Lcom/waiqin365/lightapp/sales/c/a;->o:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, " ["

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const v4, 0x7f0806c1

    invoke-virtual {p0, v4}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, "]"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, "  "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v4, v4, Lcom/waiqin365/lightapp/sales/c/a;->r:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_6

    :cond_b
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->s:Landroid/widget/TextView;

    const-string/jumbo v3, "#51bd89"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->s:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v4, v4, Lcom/waiqin365/lightapp/sales/c/a;->q:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, " "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v4, v4, Lcom/waiqin365/lightapp/sales/c/a;->o:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, " ["

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const v4, 0x7f0806c2

    invoke-virtual {p0, v4}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, "]"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_6

    :cond_c
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->x:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v10}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_7

    :cond_d
    move-object v3, v0

    goto/16 :goto_0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/sales/SalesDetailActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->c()V

    return-void
.end method

.method private c(Lcom/waiqin365/lightapp/sales/c/a;)V
    .locals 4

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/lightapp/sales/b/a/a;

    iget-object v2, p1, Lcom/waiqin365/lightapp/sales/c/a;->a:Ljava/lang/String;

    iget-object v3, p1, Lcom/waiqin365/lightapp/sales/c/a;->r:Ljava/lang/String;

    invoke-direct {v1, v0, v2, v3}, Lcom/waiqin365/lightapp/sales/b/a/a;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightapp/sales/b/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->G:Landroid/os/Handler;

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/lightapp/sales/b/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/sales/b/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/sales/b/b;->start()V

    return-void
.end method

.method private d()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->y:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->z:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/sales/SalesDetailActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->d()V

    return-void
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/sales/SalesDetailActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/sales/SalesDetailActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public a(Lcom/waiqin365/lightapp/sales/c/a;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->c(Lcom/waiqin365/lightapp/sales/c/a;)V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->back()V

    goto :goto_0

    :sswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->B:Lcom/waiqin365/lightapp/sales/a;

    iget-object v1, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/sales/a;->a(Lcom/waiqin365/lightapp/sales/c/a;)V

    goto :goto_0

    :sswitch_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    const-string/jumbo v1, "1"

    iput-object v1, v0, Lcom/waiqin365/lightapp/sales/c/a;->n:Ljava/lang/String;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iput-object v0, v1, Lcom/waiqin365/lightapp/sales/c/a;->p:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->mContext:Landroid/content/Context;

    invoke-static {v2}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/waiqin365/base/db/offlinedata/m;->f(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/sales/c/a;->q:Ljava/lang/String;

    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string/jumbo v1, "yyyy-MM-dd hh:mm"

    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    new-instance v1, Ljava/util/Date;

    invoke-direct {v1}, Ljava/util/Date;-><init>()V

    invoke-virtual {v0, v1}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    iput-object v0, v1, Lcom/waiqin365/lightapp/sales/c/a;->o:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->A:Lcom/waiqin365/lightapp/sales/c/a;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->b(Lcom/waiqin365/lightapp/sales/c/a;)V

    goto :goto_0

    :sswitch_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->I:Lcom/waiqin365/compons/view/c;

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->dismiss()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->back()V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c0067 -> :sswitch_3
        0x7f0c0abb -> :sswitch_2
        0x7f0c0abc -> :sswitch_1
        0x7f0c0ac1 -> :sswitch_0
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f030209

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->setContentView(I)V

    invoke-static {p0}, Lcom/waiqin365/lightapp/sales/d/a;->a(Landroid/content/Context;)Lcom/waiqin365/lightapp/sales/d/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/sales/d/a;->h()V

    const v0, 0x7f0c0ac9

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->b()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->a()V

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->C:Z

    if-eqz v0, :cond_0

    new-instance v0, Lcom/waiqin365/compons/view/c;

    const v1, 0x7f0806b1

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    const v1, 0x7f080702

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    sget v4, Lcom/waiqin365/compons/view/c;->b:I

    move-object v1, p0

    move-object v5, p0

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/compons/view/c;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ILcom/waiqin365/compons/view/d;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->I:Lcom/waiqin365/compons/view/c;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->H:Lcom/waiqin365/lightapp/sales/c/b;

    const-string/jumbo v1, ""

    iput-object v1, v0, Lcom/waiqin365/lightapp/sales/c/b;->g:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->H:Lcom/waiqin365/lightapp/sales/c/b;

    const-string/jumbo v1, "1"

    iput-object v1, v0, Lcom/waiqin365/lightapp/sales/c/b;->f:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->H:Lcom/waiqin365/lightapp/sales/c/b;

    iget-object v1, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->E:Ljava/lang/String;

    iput-object v1, v0, Lcom/waiqin365/lightapp/sales/c/b;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->H:Lcom/waiqin365/lightapp/sales/c/b;

    iget-object v1, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->D:Ljava/lang/String;

    iput-object v1, v0, Lcom/waiqin365/lightapp/sales/c/b;->b:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->H:Lcom/waiqin365/lightapp/sales/c/b;

    iget-object v1, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->F:Ljava/lang/String;

    iput-object v1, v0, Lcom/waiqin365/lightapp/sales/c/b;->j:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->H:Lcom/waiqin365/lightapp/sales/c/b;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->a(Lcom/waiqin365/lightapp/sales/c/b;)V

    :goto_0
    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/fiberhome/gaea/client/a/b;->addObserver(Ljava/util/Observer;)V

    return-void

    :cond_0
    invoke-direct {p0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->c()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;->d()V

    goto :goto_0
.end method
